import axios from './axiosFun';

//管理员的登录接口-注意与那个普通登录做区分
export const login = (params) => { return axios.post("/loginAdmin", params) }
//退出登录接口
export const logout = (param) => { return axios.get("/out?userId="+param) }

//管理员的登录接口-注意与那个普通登录做区分
export const getList = (params) => { return axios.post("/user/getList", params) }

//管理员修改用户状态，并且踢下线
export const updateStatus = (params) => { return axios.post("/user/updateStatus",params) }

//管理员重置用户的密码，并且踢下线
export const resetPwd = (params) => { return axios.post("/user/resetPwd",params) }

//管理员删除用户，并且踢下线
export const deleteUser = (param) => { return axios.get("/user/deleteUser?id="+param) }